import http from "../utils/http";
const api = {
  // 获取验证码
  getCode (phone) {
    return http({
      url: '/SystemLogin/getCode',
      method: 'get',
      params: {
        phone,
      }
    })
  },
  // 手机号登录
  phoneLogin (phone, code) {
    return http({
      url: '/SystemLogin/phoneLogin',
      method: 'post',
      data: {
        phone,
        code
      }
    })
  },
  // 账号密码登录
  accountLogin (phone, password) {
    return http({
      url: '/system/Login/passwordLogin',
      method: 'post',
      data: {
        phone,
        password
      }
    })
  }
}
export default api